package com.healthcarex.hip.saas.security.service;


import com.healthcarex.hip.saas.security.model.SysUser;
import com.healthcarex.hip.saas.security.model.UserWithRole;

import java.util.List;

/**
 * @author chenpan
 * @ClassName: IUserService
 * description:
 * @date 2018-04-02 16:17
 */

public interface IUserService {

    UserWithRole findById(Integer userId);

    SysUser findByName(String userName);

    List<UserWithRole> findUsers(SysUser user);

    void registUser(SysUser user);

    void updateTheme(String theme, String userName);

    void addUser(SysUser user, Integer[] roles, Integer[] depts);

    void updateUser(SysUser user, Integer[] roles, Integer[] depts);

    void deleteUsers(String userIds);

    void updateLoginTime(String userName);

    void updatePassword(Integer userId, String password);

    SysUser findUserProfile(SysUser user);

    void updateUserProfile(SysUser user);

    SysUser findUser(Integer userId);
}
